﻿<%@ Page Title="Outcomes :: Re-SeSS" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Outcomes.aspx.cs" Inherits="ReSeSSApplication.Outcomes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">


    <div class="navbar"><div class="navbar-inner">
    <div class="container">
        
        <a class="brand" href="./Index.aspx">Re-SeSS</a>
        
        <ul class="nav">
            <li><a href="UserDashboard.aspx">Dashboard</a></li>
            <li class="active"><a href="NewStudy.aspx">New Study</a></li>
            <li><a href="PreviousStudies.aspx">Previous Studies</a></li>
        </ul>
        
        <ul class="nav pull-right">
            <li class="dropdown">
                <a data-toggle="dropdown" class="dropdown-toggle" href="#"><%=loggedInUserDTO.FirstName%>&nbsp;<%=loggedInUserDTO.LastName%> <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="Profile.aspx">Profile</a></li>
                    <li><a href="ChangePassword.aspx">Change Password</a></li>
                    <li class="divider"></li>
                    <li><a href="LogOut.aspx">Logout</a></li></li>
                </ul>
            </li>
        </ul>
        
    </div>
    </div></div><!--navbar ends-->


    <ul class="breadcrumb">
    	<li class="active">You are in:&nbsp;&nbsp;&nbsp;</li>
    	<li><a href="UserDashboard.aspx">Dashboard</a> <span class="divider">/</span></li>
        <li><a href="NewStudy.aspx">New Study</a> <span class="divider">/</span></li>
        <li class="active">Outcomes</li>
    </ul><!--breadcrumb ends-->


    <div class="well">

        <h2 id="EditInclusionHeading" runat="server">Editing Inclusion</h2><br />

        <div class="alert alert-error" id="AlertError" runat="server"></div>
        <div class="alert alert-success" id="AlertSuccess" runat="server"></div>
    	<div class="alert alert-info" id="AlertInfo" runat="server"></div>

        <div style="width: 670px; margin: 0 auto;">

            <asp:GridView ID="OutcomeGridView" runat="server" AutoGenerateColumns="False"
                GridLines="None" CellSpacing="-1" 
                CssClass="table table-bordered table-striped" 
                onrowcommand="OutcomeGridView_RowCommand" 
                onrowcreated="OutcomeGridView_RowCreated">

                <Columns>
                    <asp:BoundField DataField="FieldName" HeaderText="Description" />
                    <asp:BoundField DataField="FieldValue" HeaderText="Value" />
                    <asp:TemplateField ShowHeader="False">
                        <ItemTemplate>
                            <asp:HiddenField ID="OutcomeId" Value='<%# Bind("Id") %>' runat="server" />
                            <asp:LinkButton ID="EditOutcomeButton" runat="server" CausesValidation="false"
                                CommandName="EditOutcome" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Text="<i class='icon-edit'></i>" ToolTip="Edit Outcome"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="center" />
                    </asp:TemplateField>
                    <asp:TemplateField ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="DeleteOutcomeButton" runat="server" CausesValidation="False" 
                                CommandName="DeleteOutcome" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Text="<i class='icon-trash'></i>" ToolTip="Delete Outcome" CssClass="outcome-delete"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="center" />
                    </asp:TemplateField>
                </Columns>

            </asp:GridView>

            <div class="form-inline" style="text-align:center;">
            
                <asp:TextBox ID="txtDescription" runat="server" placeholder="Description"></asp:TextBox>
                &nbsp;=&nbsp;
                <asp:TextBox ID="txtValue" runat="server" placeholder="Value" CssClass="input-medium"></asp:TextBox>&nbsp;&nbsp;
                
                <asp:CheckBox ID="ExtractCheckBox" Checked="true" runat="server" />&nbsp;
                <asp:Label ID="lblExtractValue" runat="server" Text="Extract Value" AssociatedControlID="ExtractCheckBox"></asp:Label>&nbsp;&nbsp;
                
                <asp:Button ID="AddOutlineButton" runat="server" Text="Add New Outcome" 
                    CssClass="btn" onclick="AddOutlineButton_Click" />

            </div>

        </div>

        <asp:HiddenField ID="InclusionOrParameterIdHiddenField" runat="server" />

    </div><!--body ends-->


</asp:Content>
